package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 系统角色表
 * </p>
 *
 * @author oreilly
 * @since 2018-08-23
 */
public class SysRole extends Model<SysRole> {

private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
                @TableId(value = "sid", type = IdType.AUTO)
                private Integer sid;
    /**
     * 角色名
     */
        private String roleName;
    /**
     * 自定义填充的创建时间
     */
        private Date ctime;
        private Date utime;
        private String scode;
        private String note;


    public Integer getSid() {
            return sid;
            }

        public void setSid(Integer sid) {
            this.sid = sid;
            }

    public String getRoleName() {
            return roleName;
            }

        public void setRoleName(String roleName) {
            this.roleName = roleName;
            }

    public Date getCtime() {
            return ctime;
            }

        public void setCtime(Date ctime) {
            this.ctime = ctime;
            }

    public Date getUtime() {
            return utime;
            }

        public void setUtime(Date utime) {
            this.utime = utime;
            }

    public String getScode() {
            return scode;
            }

        public void setScode(String scode) {
            this.scode = scode;
            }

    public String getNote() {
            return note;
            }

        public void setNote(String note) {
            this.note = note;
            }

@Override
protected Serializable pkVal() {
            return this.sid;
        }

@Override
public String toString() {
        return "SysRole{" +
                ", sid=" + sid +
                ", roleName=" + roleName +
                ", ctime=" + ctime +
                ", utime=" + utime +
                ", scode=" + scode +
                ", note=" + note +
        "}";
        }
        }
